package com.lanou3g.k12.service;


import com.lanou3g.k12.entity.Article;
import com.lanou3g.k12.entity.ArticleContent;

import java.util.List;

public interface ArticleService {

    // 添加标题时间状态
    void addArticle(Long cid, String content, Integer status, String title,Integer sort);

    // 添加文字内容
    void addArticleContent(ArticleContent articleContent);

    Article findArticleById(Long id);

    void updateArticleById(Long id, Long cid, Integer status, String title, String content,Integer sort);

    void deleteArticleById(Long id);

    List<Article> findAll(Integer page, Integer size);

    List<Article> findByKeyword(Integer page, Integer size, String keyword);

    void deleteArticleByIds(Integer[] ids);

    Article findByIdForBackend(Long id);

    List<Article> findByKeywordForBackend(Integer page, Integer size, String keyword);

    List<Article> findAllForBackend(Integer page, Integer size);
}
